/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface YfYlfw extends BasicModel<YfYlfw> {
  id?: number; // _identify
  locked?: string; // _locked
  sortkey?: number; // _sortkey
  ddate?: string; // 日期
  croute?: string; // 线路
  hospName?: string; // 医院
  weightGgr?: number; // 感染性
  weightPs?: number; // 损伤性
  weightSum?: number; // 总量
  remarks?: string; // 备注
  area?: string; // 区域
  qtyGr?: number; // 感染性箱数
  qtyPs?: number; // 损伤性箱数
  qtySum?: number; // 总箱数
  routeSort?: number; // 线路顺序
  ctype?: string; // 医疗机构性质
  carNo?: string; // 收运车辆
  driver?: string; // 驾驶员
  driver2?: string; // 押运员
  shDate?: string; // 收运时间
  jsDate?: string; // 接收时间
  dealDate?: string; // 处置时间
  extDjno?: string; // 联单编号
  bsp?: string; // 存档
}

export const yfYlfwList = (params?: YfYlfw | any) =>
  defHttp.get<YfYlfw>({ url: adminPath + '/bus/extd/yfYlfw/list', params });

export const yfYlfwListData = (params?: YfYlfw | any) =>
  defHttp.post<Page<YfYlfw>>({ url: adminPath + '/bus/extd/yfYlfw/listData', params });

export const yfYlfwForm = (params?: YfYlfw | any) =>
  defHttp.get<YfYlfw>({ url: adminPath + '/bus/extd/yfYlfw/form', params });

export const yfYlfwSave = (params?: any, data?: YfYlfw | any) =>
  defHttp.postJson<YfYlfw>({ url: adminPath + '/bus/extd/yfYlfw/save', params, data });

export const yfYlfwDelete = (params?: YfYlfw | any) =>
  defHttp.get<YfYlfw>({ url: adminPath + '/bus/extd/yfYlfw/delete', params });
